package com.yonyou.pmclouds.procedure.mapper;

import com.yonyou.pmclouds.basecom.dao.BaseMapper;
import com.yonyou.pmclouds.procedure.entity.ProceprojectVO;
import org.apache.ibatis.annotations.Param;

public interface ProceprojectMapper extends BaseMapper<ProceprojectVO> {
    /**
     * 获得一个Proceproject对象,以参数Proceproject对象中不为空的属性作为条件进行查询
     *
     * @param obj
     * @return
     */
    ProceprojectVO selectProceprojectByObj(ProceprojectVO obj);

    /**
     * 通过Proceproject的id获得Proceproject对象
     *
     * @param id
     * @return
     */
    ProceprojectVO selectProceprojectById(String id);

    /**
     * 通过Proceproject的pkProject获得Proceproject对象
     *
     * @param id
     * @return
     */
    ProceprojectVO[] selectProceprojectByProjectId(String id);


    /**
     * 根据项目Id删除关系
     */
    void deleteByProjectId(String id);

    ProceprojectVO[] queryRefProjectByProjectIds(@Param("pkProjects") String[] pkProjects);
}